﻿#include "setting.h"
#include "ui_setting.h"

#include "developshell.h"

#include <QDebug>

Setting::Setting(QSqlDatabase& db, QWidget *parent) :
    QDialog(parent),
    ui(new Ui::setting),
    database(db)
{
    ui->setupUi(this);
}

Setting::~Setting()
{
    delete ui;
}

void Setting::on_buttonDevelopMode_clicked()
{
//            QString create_sql = "create table student (id int primary key, name varchar(30), age int)";
//            database.exec(create_sql);

//            database.close();


    DevelopShell *developshell = new DevelopShell(database, this);
    developshell->exec();
    delete developshell;
}

